/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Random;

/**
 * <p>Project: jse2303 - For4
 * <p>Powered by webrx On 2023-07-11 15:30:38
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For6 {
    public static void main(String[] args) {
        Random rand = new Random();
        for (int a = 1; a < 10; a++) {
            for (int b = 1; b <= a; b++) {
                System.out.printf("\033[%dm%d * %d = %d\033[0m ", rand.nextInt(31, 37), b, a, a * b);
            }
            System.out.println();
        }
    }
}
